Use the same datatype for the time everywhere
Refactored the ball physics
Refactoring

Refactored the boundary creation in the ball class