F boundscheck

Add in boundschecking to the MobileEntities so they check if they are out of bounds and report to logic if they are (when asked). Logic then decides what to do when it finds one out of bounds.
Is this bitwise or-ing etc just to avoid a big nested if statement here?