/**
 * This function checks if there is a collision between the player and enemy in a game.
 */
fun checkCollision(playerX: Int, playerY: Int, enemyX: Int, enemyY: Int): String {

    // Use the ternary operator to check if the player's x-coordinate is not equal to the enemy's x-coordinate
    // and likewise for the y-coordinate, indicating a collision is not happening.
    val collision = if (playerX != enemyX && playerY != enemyY) "Collision" else "No Collision"
    return collision
}
/**
 * This function checks if there is a collision between the player and enemy in a game.
 */
fun checkCollision(playerX: Int, playerY: Int, enemyX: Int, enemyY: Int): String {
/**
 * This function checks if there is a collision between the player and enemy in a game.
 */
fun checkCollision(playerX: Int, playerY: Int, enemyX: Int, enemyY: Int): String {

    // Use the ternary operator to check if the player's x-coordinate is not equal to the enemy's x-coordinate
    // and likewise for the y-coordinate, indicating a collision is not happening.
    val collision = if (playerX != enemyX && playerY != enemyY) "Collision" else "No Collision"
    return collision
}