Hex board game in HTML5