test the program Snake