Fixed random obstacle creation