When hp is at max, we should write "max" instead of its value when saving the map