Added world width & height as parameters to the path finder function