/**
 * This function creates two tuples, each containing a list of enemy sprites.
 * The first tuple contains the first half of the sprites and the second tuple
 * contains the second half of the sprites.
 *
 * @param sprites A list of enemy sprites.
 * @return A tuple with two lists, where each list represents a subset of enemy sprites.
 */
fun createEnemySprites(sprites: List<String>): Pair<List<String>, List<String>> {

    // Find the middle index of the sprites list
    val middleIndex = sprites.size / 2

    // Slice the list to get the first half of sprites
    val firstHalf = sprites.subList(0, middleIndex)

    // Slice the list to get the second half of sprites
    val secondHalf = sprites.subList(middleIndex, sprites.size)

    return Pair(firstHalf, secondHalf)
}
/**
 * This function creates two tuples, each containing a list of enemy sprites.
 * The first tuple contains the first half of the sprites and the second tuple
 * contains the second half of the sprites.
 *
 * @param sprites A list of enemy sprites.
 * @return A tuple with two lists, where each list represents a subset of enemy sprites.
 */
fun createEnemySprites(sprites: List<String>): Pair<List<String>, List<String>> {
/**
 * This function creates two tuples, each containing a list of enemy sprites.
 * The first tuple contains the first half of the sprites and the second tuple
 * contains the second half of the sprites.
 *
 * @param sprites A list of enemy sprites.
 * @return A tuple with two lists, where each list represents a subset of enemy sprites.
 */
fun createEnemySprites(sprites: List<String>): Pair<List<String>, List<String>> {

    // Find the middle index of the sprites list
    val middleIndex = sprites.size / 2

    // Slice the list to get the first half of sprites
    val firstHalf = sprites.subList(0, middleIndex)

    // Slice the list to get the second half of sprites
    val secondHalf = sprites.subList(middleIndex, sprites.size)

    return Pair(firstHalf, secondHalf)
}