[f] add logic to check if there is winner in the game.