clear_board made private function