Improved FEN handling