Prevent moving in the opposite direction
Refactored code to make it better
Changed perspective: last segment is head now, to facilitate eating food, - Also added a function and way to add random food on the map
snake can now eat and grow