working --make camera :public gameComponent.  before making mainCamera a pointer in the renderingEngine.cpp.