Added comments and logic to move method