Finished up the flood fill algorithm