[Position] distance formula was incorrect therefore throwing off the calculations that assigned faction to entities in getNextEntity