still trying to get obstacles to work