added obstacle script to obstacle prefab