cleaned up snake generation on server side