Fixed check_winner.