Refactor GUI classes to use getMentalMap() instead of sharing the pointer.