Kate Middleton, Princess of Wales, showed off an educational game she loved on a visit to a women's prison