added the ability to add obstacles