Game of go in javascript