updated coordPair and mapHistory classes