First refactor of anonymous class
Take update logic to separated methods
Fig bug
create velocityFactor getter
Calculate velocityFactor out of update methods
take package out
Take update logic to its own class
Add comments to code
Fix hardcoding Dimention limit