in your example you are saying (every tick)
if score > 5 then ....
in mine I am saying
is the map almost off screen ? Yes then
has the map already called for a new map to be made ? no then
Call for a new map (once) and while there check the score if the score is > 5 add the skeleton.
so it only calls for a new map if the old map is almost off the screen and the old map has not yet called for a new map. The call for a new map also checks the score and acts on the skeleton accordingly.
Make sense ?