Player finding nearest plant algorithm