move with the arrows in the snake are added
some changes in the method main.
logic of move is added in the Snake