Fixed movePlayer logic