added bound-checking to position updates so that player and hunter don't leave map