/**
 * Create enemy spawns within the specified range of coordinates
 */
fun createEnemySpawns(startX: Int, endX: Int, startY: Int, endY: Int): List<Pair<Int, Int>> {

    // Check if the arguments provided are valid
    require(startX < endX && startY < endY) { "Invalid range! Start coordinates should be less than end coordinates." }

    // Create a list to hold the enemy spawn points
    val enemySpawns = mutableListOf<Pair<Int, Int>>()

    // Generate all possible combinations of x and y within the specified range
    for (x in startX..endX) {
        for (y in startY..endY) {
            enemySpawns.add(Pair(x, y))
        }
    }

    // Return the list of enemy spawn points
    return enemySpawns
}
/**
 * Create enemy spawns within the specified range of coordinates
 */
fun createEnemySpawns(startX: Int, endX: Int, startY: Int, endY: Int): List<Pair<Int, Int>> {
/**
 * Create enemy spawns within the specified range of coordinates
 */
fun createEnemySpawns(startX: Int, endX: Int, startY: Int, endY: Int): List<Pair<Int, Int>> {

    // Check if the arguments provided are valid
    require(startX < endX && startY < endY) { "Invalid range! Start coordinates should be less than end coordinates." }

    // Create a list to hold the enemy spawn points
    val enemySpawns = mutableListOf<Pair<Int, Int>>()

    // Generate all possible combinations of x and y within the specified range
    for (x in startX..endX) {
        for (y in startY..endY) {
            enemySpawns.add(Pair(x, y))
        }
    }

    // Return the list of enemy spawn points
    return enemySpawns
}