added more functionality to the Food class and added a Snake class