Create SquareDetector.java