public  boolean checkSolved(){
        	
        	
        	boolean bo=false;
        	boolean check;
        	
        	Vector <Tile> line = new Vector<Tile>(0);
        	       
           check=compareTiles((Vector<Tile>) matrix.getRow(0));
           if(check)
        	   bo=true;
           
           check=compareTiles((Vector<Tile>) matrix.getRow(1));
           if(check)
        	   bo=true;
           
           check=compareTiles((Vector<Tile>) matrix.getRow(2));
           if(check)
        	   bo=true;
           
           check=compareTiles((Vector<Tile>) matrix.getCol(0));
           if(check)
        	   bo=true;
       
           check=compareTiles((Vector<Tile>) matrix.getCol(1));
           if(check)
        	   bo=true;
           
           check=compareTiles((Vector<Tile>) matrix.getCol(2));
           if(check)
        	   bo=true;
           
           line.add((Tile) matrix.get(0,0));
           line.add((Tile) matrix.get(1,1));
           line.add((Tile) matrix.get(2,2));
           check=compareTiles(line);
           if(check)
        	   bo=true;
           
           line.set(0,(Tile) matrix.get(0, 2));
           line.set(1,(Tile) matrix.get(1, 1));
           line.set(2,(Tile) matrix.get(2, 0));
           check=compareTiles(line);
           if(check)
        	   bo=true;
        	
        	return bo;
        }