public Player getPlayer(int index) throws IndexOutOfBoundsException {
        if ( (index < 0) || (index > MAX_PLAYERS-1) )
                throw new IndexOutOfBoundsException("Player index "+index+" is invalid. Max players: "+MAX_PLAYERS);
        return players[index];
    }