all-possible-moves working