so i did the function that will return me which one of the players is closer to the 2D grid(all this is inside a bigger grid) but i know for sure it\'s possible to me the functi