def tosq(mv): return square.from_index((mv & TOSQ) >> TOSQ_OFF)
def frsq(mv): return square.from_index((mv & FRSQ) >> FRSQ_OFF)