An implementation of the game snake, with an attempt at intelligent AI