I have changed the code this way

I have added a background image, sprites, sounds and several new game behaviours