game.js
function requestBody(request, onEnd) {
    var fullBody = '';
    request.on('data', function(d) {
        fullBody += d.toString();
    });
    request.on('end', function() {
        onEnd(querystring.parse(fullBody));
    });
}
function requestBody(request, onEnd) {
    var fullBody = '';
    request.on('data', function(d) {
        fullBody += d.toString();
    });
    request.on('end', function() {
        onEnd(querystring.parse(fullBody));
    });
}
function requestBody ( request , onEnd ) { var fullBody = '' ; request . on ( 'data' , function ( d ) { fullBody += d . toString ( ) ; } ) ; request . on ( 'end' , function ( ) { onEnd ( querystring . parse ( fullBody ) ) ; } ) ; }
extract data from request body and pass to onEnd functon
extract data from request body and pass to onEnd functon