Spawning Static Objects from level file
refactored code