public void getMap(){		
		int x = xStart;
		int y = yStart;
		mapWidth = 0;
		mapHeight = 0;
		int doorCount = 0;
		int interactiveCount = 0;
		
		//Gets map from globalMap
		LocalMap blockTypes = globalMap.enterLocalMap(globalPosX , globalPosY);
		columns = blockTypes.x;
		rows	= blockTypes.y;
		
		blocks = new Block[rows][columns];
		
		for(int i = 0; i < blockTypes.y; i++){		
			x = xStart;
			
			for(int j = 0; j < blockTypes.x; j++){
			
				if(blockTypes.map[i][j] == 3 || blockTypes.map[i][j] == 14){
					
					blocks[i][j] = new DoorBlock(x , y , blockTypes.map[i][j], blockTypes.getDoorId(doorCount + 1), blockTypes.getDoorId(doorCount));
					doorCount++;
					
				} else if (blockTypes.map[i][j] == 13) {
					
					blocks[i][j] = new InteractiveBlock(x, y, blockTypes.getInteractiveId(interactiveCount), blockTypes.getInteractiveId(interactiveCount + 1));
					interactiveCount++;
					
				} else {
					
					blocks[i][j] = new Block(x , y , blockTypes.map[i][j]);
					
				}
				x += Screen.blockSize;

			}
			
			y += Screen.blockSize;
			
		}
		
		lastBlockVer = blocks[rows-1][0];
		lastBlockHor = blocks[rows-1][columns-1];
		
		mapWidth = x - Screen.blockSize;
		mapHeight = y - Screen.blockSize;
	}