Path Finding Updated 

path_matrix e acum global, impreuna cu x si harta care primesc mapNumber