Update GUI and frame position; Improve duplicated tiles checking.