Recoded bounds checking to work within the MobileEntity. Also added the ability to disable directions
Top level resolved merged conflict from joint work on boundschecking