/**
 * This function checks if the player and enemy have collided.
 *
 * @param player The player character object as a Map
 * @param enemy The enemy character object as a Map
 * @return True if there is a collision, False otherwise
 */
fun checkCollision(player: Map<String, Int>, enemy: Map<String, Int>): Boolean {

    // Check if the player's x-coordinate is less than the enemy's x-coordinate
    if (player["x"]!! < enemy["x"]!!) {
        // Add code here to check if the player's y-coordinate is also less than the enemy's y-coordinate
        if (player["y"]!! < enemy["y"]!!) {
            return true
        }
    }
    // If the above conditions are not met, return false
    return false
}
/**
 * This function checks if the player and enemy have collided.
 *
 * @param player The player character object as a Map
 * @param enemy The enemy character object as a Map
 * @return True if there is a collision, False otherwise
 */
fun checkCollision(player: Map<String, Int>, enemy: Map<String, Int>): Boolean {
/**
 * This function checks if the player and enemy have collided.
 *
 * @param player The player character object as a Map
 * @param enemy The enemy character object as a Map
 * @return True if there is a collision, False otherwise
 */
fun checkCollision(player: Map<String, Int>, enemy: Map<String, Int>): Boolean {

    // Check if the player's x-coordinate is less than the enemy's x-coordinate
    if (player["x"]!! < enemy["x"]!!) {
        // Add code here to check if the player's y-coordinate is also less than the enemy's y-coordinate
        if (player["y"]!! < enemy["y"]!!) {
            return true
        }
    }
    // If the above conditions are not met, return false
    return false
}