added a function to get all possible moves, not tested yet