x and y axis motion working kinda