added jointeam.java and fixed the problem i was having (see last commit)