/**
 * This function checks the game state based on player and enemy health.
 * If player health is 0, it returns 'Game Over'.
 * If enemy health is 0, it returns 'Victory!'.
 * If both player and enemy health are greater than 0, it returns 'Ongoing Battle'.
 */
fun checkGameState(playerHealth: Int, enemyHealth: Int): String {

    return when {
        playerHealth == 0 -> "Game Over"
        enemyHealth == 0 -> "Victory!"
        else -> "Ongoing Battle"
    }
}
/**
 * This function checks the game state based on player and enemy health.
 * If player health is 0, it returns 'Game Over'.
 * If enemy health is 0, it returns 'Victory!'.
 * If both player and enemy health are greater than 0, it returns 'Ongoing Battle'.
 */
fun checkGameState(playerHealth: Int, enemyHealth: Int): String {
/**
 * This function checks the game state based on player and enemy health.
 * If player health is 0, it returns 'Game Over'.
 * If enemy health is 0, it returns 'Victory!'.
 * If both player and enemy health are greater than 0, it returns 'Ongoing Battle'.
 */
fun checkGameState(playerHealth: Int, enemyHealth: Int): String {

    return when {
        playerHealth == 0 -> "Game Over"
        enemyHealth == 0 -> "Victory!"
        else -> "Ongoing Battle"
    }
}