Added functionality to win the game