refactor end game messages