/**
 * This function checks the game status based on the player's score and remaining lives.
 * Returns a message indicating the player's progress in the game.
 */
fun checkGameStatus(score: Int, lives: Int): String {

    return when {
        score >= 100 && lives <= 0 -> "Game over! You have lost with a score of $score."
        score >= 100 && lives > 0 -> "Congratulations! You have won the game with a score of $score and $lives lives remaining."
        score < 100 && lives <= 0 -> "Game over! You have lost with a score of $score."
        else -> "Continue playing the game."
    }
}
/**
 * This function checks the game status based on the player's score and remaining lives.
 * Returns a message indicating the player's progress in the game.
 */
fun checkGameStatus(score: Int, lives: Int): String {
/**
 * This function checks the game status based on the player's score and remaining lives.
 * Returns a message indicating the player's progress in the game.
 */
fun checkGameStatus(score: Int, lives: Int): String {

    return when {
        score >= 100 && lives <= 0 -> "Game over! You have lost with a score of $score."
        score >= 100 && lives > 0 -> "Congratulations! You have won the game with a score of $score and $lives lives remaining."
        score < 100 && lives <= 0 -> "Game over! You have lost with a score of $score."
        else -> "Continue playing the game."
    }
}