a snake AI written in python