extract method to determine current player