/**
 * This function checks if all the levels in a game are completed by the player.
 *
 * @param gameData A list containing the levels completed by the player.
 * @param gameLevels A list containing all the levels of the game.
 * @return True if all levels are completed, False otherwise.
 */
fun checkGameCompletion(gameData: List<Int>, gameLevels: List<Int>): Boolean {

    // Use the 'all' function to check if all levels in gameLevels are completed by the player
    return gameLevels.all { it in gameData }
}
/**
 * This function checks if all the levels in a game are completed by the player.
 *
 * @param gameData A list containing the levels completed by the player.
 * @param gameLevels A list containing all the levels of the game.
 * @return True if all levels are completed, False otherwise.
 */
fun checkGameCompletion(gameData: List<Int>, gameLevels: List<Int>): Boolean {
/**
 * This function checks if all the levels in a game are completed by the player.
 *
 * @param gameData A list containing the levels completed by the player.
 * @param gameLevels A list containing all the levels of the game.
 * @return True if all levels are completed, False otherwise.
 */
fun checkGameCompletion(gameData: List<Int>, gameLevels: List<Int>): Boolean {

    // Use the 'all' function to check if all levels in gameLevels are completed by the player
    return gameLevels.all { it in gameData }
}