added nearby entity detection to server