Rate Limiter Python Code For Snake Game