classic game of snake wrote in python