implementations for sequencial flood fill
removed output