[Square]Fixe some bugs and add weighting to find tile to attack
[Capacities] add function do get xy with tile number