An AI for the a pern version of snake