JavaScript based board game