Find tiles that matches each others. match 2 tiles and combine them to make them disappear in this new take…