state and action are 1*6 array in rl.m