objectGenerator dosent spawn more obstacles if failed