robot can move horizontally and vertically