when the energy reaches zero the game is over