Exit program on game end