A new iOS game called EndeavourRX is the first of its kind to be authorised by the US Food and Drug Administration (FDA) as a medical prescription.