Implements game end event.