moved the floodFillAt method