Added Core Engine and Main Engine Loop