A simple collision game using javascript