basic version
basic algo for flooding the current best move -- DP
sol of q120