Major Refactoring

Updated wumpus and apg with necessary refactoring of broken code.