Added a state machine for the ball handler.