Update Team.java

Minor change to prevent array out of range