Improve the obstacle creation