made the movement framerate independent