Strategy game in HTML5