/**
 * This function creates a list of enemies in a game based on the given game map and number of enemies.
 *
 * @param gameMap A 2D list representing the game map.
 * @param numEnemies The number of enemies to be created.
 * @return A list of enemies with their positions on the game map.
 */
fun createEnemyList(gameMap: List<List<Int>>, numEnemies: Int): List<List<Int>> {

    val enemyList = mutableListOf<List<Int>>()
    for (i in 0 until numEnemies) {
        val x = (0 until gameMap.size).random()
        val y = (0 until gameMap[0].size).random()
        enemyList.add(listOf(x, y))
    }
    return enemyList
}
/**
 * This function creates a list of enemies in a game based on the given game map and number of enemies.
 *
 * @param gameMap A 2D list representing the game map.
 * @param numEnemies The number of enemies to be created.
 * @return A list of enemies with their positions on the game map.
 */
fun createEnemyList(gameMap: List<List<Int>>, numEnemies: Int): List<List<Int>> {
/**
 * This function creates a list of enemies in a game based on the given game map and number of enemies.
 *
 * @param gameMap A 2D list representing the game map.
 * @param numEnemies The number of enemies to be created.
 * @return A list of enemies with their positions on the game map.
 */
fun createEnemyList(gameMap: List<List<Int>>, numEnemies: Int): List<List<Int>> {

    val enemyList = mutableListOf<List<Int>>()
    for (i in 0 until numEnemies) {
        val x = (0 until gameMap.size).random()
        val y = (0 until gameMap[0].size).random()
        enemyList.add(listOf(x, y))
    }
    return enemyList
}