Add solution to square detector