add disabled state to swing based on proximity of ball