Refactor: Made an abstract base class for the exploration modes, cut over the cube mode to use it.