game.js
function playerFromReq(request, response, game) {
    var jar = new cookies(request, response);
    var p = decodeURIComponent(jar.get('player'));
    return game.players[p];
}
function playerFromReq(request, response, game) {
    var jar = new cookies(request, response);
    var p = decodeURIComponent(jar.get('player'));
    return game.players[p];
}
function playerFromReq ( request , response , game ) { var jar = new cookies ( request , response ) ; var p = decodeURIComponent ( jar . get ( 'player' ) ) ; return game . players [ p ] ; }
find player from request cookie
find player from request cookie