added collision handling for acceleration and decceleration
Merge branch 'master' of https://github.com/fryingpan/Assignment2