http://www.javascriptkit.com/script/script2/tactoe.shtml