Extract another function and use common playerTable