implemented nested foreach loop to call the update method for each object that has been created in the level editor screen and placed on the grid.