fixed weird error related to backtracking and the square class.
Numsides used to decrease when a side was gone through, nummapped was being decreased instead of increased an backtracking was defined as going backwards instead of being in a square with only one exit