Update isUseableByPlayer function to check for player distance