detect game over and fire an event