solved all 3x3 basic problems, clean up codebase

solved all 3x3 problems
removed unused code and comments
added fill rule/operator
clean up the angle difference measuring