Makefile creates required folders
fixed a few problems when detecting available tiles to move