Made movement smoother.
Added collision handling.
Removed unused code.