Top down hack and slash game in html5 canvas