The class BallMover should not be static. Make it non static. That would resolve the issue