change win condition to return the winner instead of boolean when a win condition is met