private void checkMapBounds(){
		// The X and Y-coordinate in the middle of the character
		int playerX = engine.getPlayer().getX() + (engine.getPlayer().getWidth()/2);
		int playerY = engine.getPlayer().getY() + (engine.getPlayer().getHeight()/2);
		ArrayList<Map> maps = engine.getWorld().getMaps();
		Map currentMap = engine.getWorld().getCurrentMap();
		
		if(playerX > 800){
			// Switch to east map
			engine.getWorld().setCurrentMap(maps.get(Integer.parseInt(currentMap.getMap("east"))));
			engine.getPlayer().setX(800-engine.getPlayer().getX()-engine.getPlayer().getWidth()+10);
			changeMap();
		}
		if(playerX < 0){
			// Switch to west map
			engine.getWorld().setCurrentMap(maps.get(Integer.parseInt(currentMap.getMap("west"))));	
			engine.getPlayer().setX(800+engine.getPlayer().getX()-10);
			changeMap();
			
		}
		if(playerY > 640){
			// Switch to south map
			engine.getWorld().setCurrentMap(maps.get(Integer.parseInt(currentMap.getMap("south"))));
			engine.getPlayer().setY(640-engine.getPlayer().getY()-engine.getPlayer().getHeight()+10);
			changeMap();
		}
		if(playerY < 0){
			// Switch to north map
			engine.getWorld().setCurrentMap(maps.get(Integer.parseInt(currentMap.getMap("north"))));
			engine.getPlayer().setY(640+engine.getPlayer().getY()-10);
			changeMap();
			
		}
	}