Fixed too-slow movement and some compiler warnings