Added asynchronous player input (async prompt) function.