public static SpinResponse processSpinRequest(SpinRequest request) {
        String userid = request.getUserid();
        SpinResponse response = null;

        if (!Croupie.newInstance().isPasswordValidForUserId(userid, request.getPlayerPassword())) {
            response = new SpinResponse(request.getUserid(), "spin", ANSWER_BAD, PASSNOTVALID);
        } else {
            Croupie.newInstance().performGameMove();
            response = new SpinResponse(request.getUserid(), "spin", ANSWER_OK);

        }
        return response;
    }