a javascript version of the game pentago