refactor movement methods replace up, down, left, right.