working on getAllMoves()