|the problem is just the graphics card being weak. the 8400GS is a poor excuse for a gaming card, despite having 512MB of video ram on it.|
the only way to fix that problem is to replace the card with something better.
i recommend posting here before making the final decision on a card.
you'll need to verify too that the Power Supply in your new machine will be able to handle the new card.