A simple cannon game in Javascript