deput d'optimisation
improve a star and check on npc for the player