Let check_board accept tile_width.
Initialize board in init_board.
Free board memory in free_board.