Built the basic model for the snake game