Advance Wars Javascript clone