clean
to remove groups of three or more consecutive balls of the same color from the board.dfs
that takes the current state of the board and the hand as arguments.clean
function to get the new board state.dfs
with the new board and the updated hand (with the inserted ball removed).dfs
function to avoid recomputing the same states.