We need to write a new class handling the states in the engine, the name will be States. It will act as a form of middle layer, making Editor class do calls to it to see which functions to call
example of how it might be used:
switch(States->whatState())
{
case MapCreation:
classFunction();
break;
default:
break;
}