First run:
$ sudo bash dependencies.sh
Now, assuming all dependencies was successfully installed, run:
$ bash run.sh
Pictures can be changed or added adding the .bmp file in "Pictures" folder and adding it's name as an argument in ./15puzzle [ image-name.bmp ]