fixed a bug (ball moves correctly)