Made rudimentary move method with boundary checking.