The game Snake is known around the world and enjoyed by people of all ages. As during childhood, when a neighborhood boy introduced Tetris and then soon a line formed to play it. Also in great demand was this snake game. The principle of the game is to control a snake that crawls on the pitch and devours cubes. Each cube extends the length of the snake, and within 10-15 minutes the snake becomes several times larger, which makes it clumsy and substantially interferes with the game. One has to monitor not only whether to eat the next cube, but also not to eat yourself in the process. If the snake bites at his own tail the game ends.