finished get_moves