public TileMap loadNextMap() {
        TileMap map = null;
        currentMap++;
        while (map == null) {
            try {
            	if (currentMap > 1) currentMap = 1;
                map = loadMap("assets/maps/map" + currentMap + ".txt");
            }
            catch (IOException ex) {
                map = null;
            }
        }
        return map;
    }