Attempt at creating an rts game in html