The only thing missing is how to tackle the draw result. The result is a draw when all the boxes are filled.