Added code to reset snake array