public boolean equals(Puzzle p)
    {
        boolean equals = true;
        for(int i=0; i<9; i++)
        {
            for(int j=0; j<9; j++)
            {
                equals = equals && grid[i][j].equals(p.getGrid()[i][j]);
            }
        }
        return equals;
    }