modified Linhaibin's search. trying to output all the possible moves for testing purpose