Javascript End Script In Python Code For Snake