Externalised reset snake function

Took the reset snake code out of the snake's init function and made it a
function of its own -- Can be used for testing.