private void checkGibbonBounds() { if (game.isOffscreen(connectRectJoint.WorldAnchorA) && game.isOffscreen(rectBody1.WorldCenter) && game.isOffscreen(rectBody2.WorldCenter) && game.isOffscreen(clampedJoint.WorldAnchorA)) { Console.Write("Robot out of bounds.\n"); game.endGame(2); } }