added a function and modified ball stops when game ended
modified to display GAMEOVER
modified the bar so that it does not move when the game is over