Tweaking variables
Adding more comments explaining calculations
Added wall collision detection