private void checkDoorTiles(){
		ArrayList<Map> maps = engine.getWorld().getMaps();
		Map currentMap = engine.getWorld().getCurrentMap();
		
		for(Tile tile : currentMap.getDoorTiles()){
			
			// Cast tile to doorTile
			DoorTile d1 = (DoorTile)tile;
			
			if(engine.getPlayer().getBounds().intersects(d1.getBounds()) && d1.isActive()){
				// get intersectarea
				int width = (int)engine.getPlayer().getBounds().intersection(d1.getBounds()).getWidth();
				int height = (int)engine.getPlayer().getBounds().intersection(d1.getBounds()).getHeight();
				
				if(width * height >= (PLAYER_WIDTH * PLAYER_HEIGHT)){
					System.out.println("Switch map!");
					engine.getWorld().setCurrentMap(maps.get(d1.getToMap()));
						
					// Search for the door that is connected to this
					for(Tile door : maps.get(d1.getToMap()).getDoorTiles()){
						
						// Cast to DoorTile
						DoorTile d2 = (DoorTile)door;
						
						if(d1.getToTileId() == d2.getFromDoorId()){
							int newX = door.getX();
							int newY = door.getY();
							
							// Set the players new coordinates according to the doortile its moving to	
							engine.getPlayer().setX(newX);
							engine.getPlayer().setY(newY);
							
							// Save map
							changeMap();
							
							// Set the door you are traveling to to not active after save
							d2.setInactive(2000);
						}
					}
				}
			}
		}
	}