public boolean allowRun(HttpServletRequest request) {
        if(request.getSession().getAttribute("sessionInStr") == null || request.getParameterValues("moveDirection") == null
                || request.getParameterValues("curState") == null || request.getParameterValues("readSymb") == null
                || request.getParameterValues("newSymb")== null || request.getParameterValues("nextState") == null
                ) {
            return false;
        }
        else {
            return true;
        }
    }