refactored code for generating non-slider moves and changed byte order of move encoding