further changes to the obstacle script