public DisplayBoard clone() 
    {
        DisplayBoard cloned = new DisplayBoard(width, height);
        
        for(int x = 0; x < width; x++)
        {
            for(int y=0; y < height; y++)
            {
                    cloned.grid[x][y] = grid [x][y];
                    cloned.colorGrid[x][y] = colorGrid[x][y];

            }
        }
        
        return cloned;
    }