Added check for win for player.