Fixed issues with entity depth checking
Implemented the beginnings of a dialog system