fix some tile check functions, and make bounds checking explicit
make RandomBots kind of work the way they're supposed to