Program gives error message when inserting a tile

Follow