Javascript Rts Game