Fix ground detection.
Add a method map:get_ground() (fix #141).