public void RotateBoardSection(Rotation rotation, GameObject rotatingSection) { var rotatingSectionPosition = rotatingSection.transform.position; var gridPoint = Geometry.GridFromPoint(new Vector3(rotatingSectionPosition.x, 0.0f, rotatingSectionPosition.z)); Grid.Rotate(rotation, gridPoint.y, gridPoint.x); if (!CheckWinner()) { NextPlayer(); } }