make snakes example faster with opengm