drawing the board on html canvas