add functions to init board and mark a square