Fixed crash on too many power cycles.

Fixed the issue where the game would slow down or crash when the power was clicked too many times.