Criss_Cross Game in Javascript