Stack And Queue Code In Python For Snake