add gen_pos to generate board position for align msg postion