Arcade game in JavaScript