added SnakeFlag class, modified Snake,  PlayerSnake, SnakeMain, and SnakeNode classes