Problems with spawn positions and the end of the world, instead of moving the player forward and leaving the rest of the world spawned in the whole time you could have made it so that you left the tops and bottom of the mape still and moved your obstacles from offscreen toward teh player then destroyed them when they were no longer in view and the same goes for the collectables