removing no-op move commands
fixing bug in moving after self