replace int by num for board width and height