Fixed a bug where victory conditions were checking the wrong values
Refactored nextTurn() to be more readable