add move_up and move_down function,and they are similar to move_left function