Changed TurnAction lambda to static inner class.