Changed byte[][] in floodfill/history to boolean[][]
Changed trace printing to only run when DEBUG flag is true
Removed unused classes and functions