Making Function Async Python Code For Snake