working tick tack toe game made in js