init work on xo game with canvas