added all the movement bugfixes