cleaned up end of game play