gives an alert when game over