continue refactoring #represent_board_state