create obstacle as rock and make movement to it from right to left.
edit Jump funtion from iteration1 comments as space key only to do it.