saving brick matrix and position (world coords) to json