Heat the pan and add a cup of water and add the rice flour to it. Mix well so there are no lumps. Add the sesame and almond paste and stir till it starts bubbling. The mix should be a thick pourable consistency add water if necessary to loosen it a little. Make sure to scrape down the sides of the pan where the rice and sesame mix congeals. Lower the heat and add the sugar and stir till it is mixed in.