Major refactoring. Added a Config class and classes for creating ObserverPattern of the ball position.