State pattern for ball controller and teleporter