Wrap player/bear coordinates at edge of map.

Rather than in middle as previously.
Player/bear co-ordinates will now always be in range(MAPSIZE).
Fix stupid typo.
Remove over-verbose debugging.