public void changeCurrentUser() throws Exception {
        if(users.isEmpty()){
            throw new Exception("user collection is empty");
        }
        Integer lastId = currentUser.getId();
        this.currentUser.resetCount(this.getAviableMatches());
        this.currentUser.getCounter().setCount(this.currentUser.type, this.currentUser.getCount());
        this.currentUser.getCounter().setInactive();
        if(lastId == users.size()){
            this.setCurrentUser(1);
        } else{
            this.setCurrentUser(lastId + 1);
        }
        this.currentUser.resetCount(this.getAviableMatches());
        this.currentUser.getCounter().setCount(this.currentUser.type, this.currentUser.getCount());
        this.currentUser.getCounter().setActive();
    }