added quit and replay options at the end of the game