Matrix generator creates the matrix that represents the world
prova call the function to try if everything is working
alghoritm is the search alghoritm, still messed