added the ability to get moves from the game in sorted order