added function to clear bricks from scene
better json export. create full json object before converting to string