Very clean and good example. If I am not mistaken, there are only two tentative corrections for the code. Instead of
(0,0,".",10,"Blue",1,5)
(0,0,"O",10,"Blue",1,5)
you should use previously defined variables Ox and Oy
(Ox,Oy,".",10,"Blue",1,5)
(Ox,Oy,"O",10,"Blue",1,5)