fix some errors. ToDo: find target tile