This is the basis for a scrolling game. Remix and add more terrain, edit it, and levels, turn it into a game, whatever. THIS IS NOT A GAME. Nothing is broken, it isn't wrong it is just a lump of code.
You don't need to ask to remix <><><><><><><><><><><><><><><><><><><><><><><><><><><> Sorry about rubbish graphics <><><><><><><><><><><><><><><><><><><><><><><><><><><> Hope it helps