writing flood fill filter for input processing, yo