REFACTOR: Separated game engine code from tests