Work on game end