Objects don't move correctly

If you are a student, then ask your teacher to share the space. Or make a screenshots with the object and the non-working code