Consider buying from iBuyPower or CyberPowerPC rather than a brick-and-mortar retailer like Best Buy, since the physical shops tend to charge more for the same parts.
A small terminology note: what you are describing is not really lag. Lag is a network issue and is unaffected by your PC's specifications, aside from a wireless router or receiver. What you actually want is a solid 30-plus frames per second.
Check the video card, RAM and CPU. The processor should be at least dual-core running around 2 GHz or above, or 3 GHz and up if it is single-core. On the graphics side, something in the range of an NVIDIA 9000 series or an ATI 4000 series will comfortably handle Half-Life 2, Team Fortress 2 and Portal at mid to max settings.