adding code comments to queenslogic.java