Implementing move logic in Command