Refactor updateGame and playerTurn to be more DRY.