implemented move mode (mode 4)