added multi-threading for prompt_player