finished game and server logic