Some refactoring in variants logic: more robust FEN handling (untested)