switch on game end