added a new class in Engine that handles the mapchanges