Creating board game civa using js