terminal snake game written in python3.x