Server code for GameOfPhones