//Checks to see if the block was previously in a code list and removes it
 private void OldCodeListCheck(CodeList oldCodeList, GameObject draggedObject)
 {
     if (oldCodeList != null)
     {
         oldCodeList.RemoveBlock(draggedObject);
     }
 }