Add isValid() to verify whether given coordinates are within map bounds