fixes playerdetector form (detector must be replaced)
slightly optimized player detecting