C-5 flood fill problem