Implementing command logic.
Implemented movement model.