Solver for game about squares