Added logic for winner, catsgame, and replay