/**
 * Function to create a game map for a game developer.
 *
 * @param width The width of the game map.
 * @param height The height of the game map.
 * @return The created game map as a list.
 */
fun createGameMap(width: Int, height: Int): List<List<String>> {

    val gameMap = mutableListOf<List<String>>()

    repeat(height) { row ->
        val gameRow = mutableListOf<String>()

        repeat(width) { col ->
            gameRow.add(listOf("grass", "tree", "rock", "water").random())
        }

        gameMap.add(gameRow)
    }

    return gameMap
}
/**
 * Function to create a game map for a game developer.
 *
 * @param width The width of the game map.
 * @param height The height of the game map.
 * @return The created game map as a list.
 */
fun createGameMap(width: Int, height: Int): List<List<String>> {
/**
 * Function to create a game map for a game developer.
 *
 * @param width The width of the game map.
 * @param height The height of the game map.
 * @return The created game map as a list.
 */
fun createGameMap(width: Int, height: Int): List<List<String>> {

    val gameMap = mutableListOf<List<String>>()

    repeat(height) { row ->
        val gameRow = mutableListOf<String>()

        repeat(width) { col ->
            gameRow.add(listOf("grass", "tree", "rock", "water").random())
        }

        gameMap.add(gameRow)
    }

    return gameMap
}