Tweaked flood fill