Added algorithm for geting free player