added utility function to run snake simulations until it dies