/**
 * Generates a game dictionary with specified number of levels, rows, and columns.
 *
 * @param levels The number of levels in the game.
 * @param rows The number of rows in each level.
 * @param cols The number of columns in each level.
 * @return A nested dictionary representing the game levels.
 */
fun generateGameLevels(levels: Int, rows: Int, cols: Int): Map<Int, Map<String, Any>> {

    val game = mutableMapOf<Int, Map<String, Any>>()
    for (level in 1..levels) {
        val grid = List(rows) { MutableList(cols) { "" } }
        game[level] = mapOf(
            "grid" to grid,
            "players" to emptyList<Any>(),
            "enemies" to emptyList<Any>()
        )
    }
    return game
}
/**
 * Generates a game dictionary with specified number of levels, rows, and columns.
 *
 * @param levels The number of levels in the game.
 * @param rows The number of rows in each level.
 * @param cols The number of columns in each level.
 * @return A nested dictionary representing the game levels.
 */
fun generateGameLevels(levels: Int, rows: Int, cols: Int): Map<Int, Map<String, Any>> {
/**
 * Generates a game dictionary with specified number of levels, rows, and columns.
 *
 * @param levels The number of levels in the game.
 * @param rows The number of rows in each level.
 * @param cols The number of columns in each level.
 * @return A nested dictionary representing the game levels.
 */
fun generateGameLevels(levels: Int, rows: Int, cols: Int): Map<Int, Map<String, Any>> {

    val game = mutableMapOf<Int, Map<String, Any>>()
    for (level in 1..levels) {
        val grid = List(rows) { MutableList(cols) { "" } }
        game[level] = mapOf(
            "grid" to grid,
            "players" to emptyList<Any>(),
            "enemies" to emptyList<Any>()
        )
    }
    return game
}