game over event handling for every square