obstacle can move by y position and random x position