Added flood fill function.