Energy-dissipation in a coupled system of Allen--Cahn type equation and Kobayashi--Warren--Carter type model of grain boundary motion