elif from_flag == 2:
                for t in movable_komas:
                    if (turn and t[0] > to_x) or \
                       (not turn and t[0] < to_x):
                        from_x, from_y = t