Moved prints to obstacle functions