Classic arcade game in Javascript and HTML canvas