Added "hasWon" functionality to win condition.