@Override
    public boolean doActivity(Player p) {
        if(exam == null)
        {
            return false;
        }
        if((this.exam.getTopic().equals(Topic.OOP)) && !(leavable(p)))
        {
            exam.doExam();
            if (exam.isPassed() || p.isCheater()) {
                StringManager.outPut("passed");
            }
            else
            {
                StringManager.outPut("failed");
            }
            return true; 
        }
        else
        {
            return false;
        }
    }