HTML5 Canvas 2D strategy game