Endless game that avoids obstacles by swinging