changed main rendering function to use (run-snake)