fixed infinite loop problem

heuristic NumberTileOutOfPlace works