added function for drawing final snake