public void UpdateCurrentPageType()
 {
     mainPage = currentPage as MainPage;
     gamePage = currentPage as GamePage;
     gameLobby = currentPage as GameLobby;
     invitePlayerPage = currentPage as InvitePlayersPage;
     waitForHost = currentPage as WaitingForHost;
     scorePage = currentPage as ScorePage;
 }