/**
 * Given a list of game elements and a range of indices, this function returns a sublist of game elements
 * within the specified range.
 *
 * @param gameElements A list of game elements.
 * @param startIndex The starting index of the desired sublist.
 * @param endIndex The ending index (exclusive) of the desired sublist.
 * @return A sublist of game elements within the specified range.
 */
fun getIndicesOfGameElements(gameElements: List<Any>, startIndex: Int, endIndex: Int): List<Any> {

    // Complete the function to return the sublist of game elements using slicing
    return gameElements.subList(startIndex, endIndex)
}
/**
 * Given a list of game elements and a range of indices, this function returns a sublist of game elements
 * within the specified range.
 *
 * @param gameElements A list of game elements.
 * @param startIndex The starting index of the desired sublist.
 * @param endIndex The ending index (exclusive) of the desired sublist.
 * @return A sublist of game elements within the specified range.
 */
fun getIndicesOfGameElements(gameElements: List<Any>, startIndex: Int, endIndex: Int): List<Any> {
/**
 * Given a list of game elements and a range of indices, this function returns a sublist of game elements
 * within the specified range.
 *
 * @param gameElements A list of game elements.
 * @param startIndex The starting index of the desired sublist.
 * @param endIndex The ending index (exclusive) of the desired sublist.
 * @return A sublist of game elements within the specified range.
 */
fun getIndicesOfGameElements(gameElements: List<Any>, startIndex: Int, endIndex: Int): List<Any> {

    // Complete the function to return the sublist of game elements using slicing
    return gameElements.subList(startIndex, endIndex)
}