Stopping hero to go above map boundaries