improve floodfill, done proj3