public void populateRedPyramidLogics(Logic logic) {
if (fInitRedPyramids) return;
fInitRedPyramids = true;
GridManager gm = fMapManager.parent().manager(GridManager.class);
// Iterate through tiles to find red pyramids
for (int y = 0; y < fWidth; y++) {
for (int x = 0; x < fHeight; x++) {
GridCoordinate xy = new GridCoordinate(x, y);
if (traits(xy).contains("redPyramid")) {
// Check whether a logic has been placed here
Effect e = gm.getFirstEntityOfTypeAt(xy, Effect.class);
if (e == null) {
try {
Logic l = new Effect();
JSONObject json = logic.exportToJSON();
json.put("xy", (x * 32) + " " + (y * 32));