game_function.js : check_useless_board function programmed.