flood fill algorithm for Bob | ScratchStats