Fix bug in Monster::canWalkTo

Fixed a bug in Monster::canWalkTo where it wasn't working properly with
diagonal directions
Code cleanup