Added type for position to distinguish between food and the snake
Boilerplate for snake class v2