refactor board with 9 cells only, refactor click function