Random generator finds always path to goal