javascript implementation of Go board game