epdimport: fix epd parsing + castle move generation