public void adjacentWarShall(){
        for(int m = 0; m < (width*height); m++){
            ArrayList<Tile> adjacent = getAdjacent(reverseMapping(m));
            for(Tile t: adjacent){
                warshall[m][mapping(t)] = true;
            }            
        }
        for(int k = 0; k < (width*height); k++){
            for(int i = 0; i < (width*height); i++){
                for(int j = 0; j < (width*height); j++){
                    warshall[i][j] = warshall[i][j] || (warshall[i][k] && warshall[k][j]);
                }
                
            }
        }
    }