Really fixed the getNearbyPlayers function