a same game in HTML canvas