movement and animations now work correctly