Added deltaTime to animations

Small bug, animation speed depended on device speed of rendering game.
Checking for collisions before moving player

obj.checkthenMoveX function added