elif from_flag == 4:
                for t in movable_komas:
                    if (turn and t[1] < to_y) or \
                       (not turn and t[1] > to_y):
                        from_x, from_y = t