use lambda to collect all possible moves