Main Core for the game engine