Server side main logic of states flow implemented
advances
Adding the modifications from onlineGamesFlow