Updated game end script