Flood fill is working. code is still pretty messy though.