split toFen to config and board