The Grand Ayatollah Khamenei: If a person can determine that chess at the current time is not counted as gambling, there is no problem in making, buying, selling and playing it without betting. Also considering the above condition there is no problem with teaching it.
https://www.google.com/search?q=playing+cess+near+ayatullah+Khamenei&ie=UTF-8&oe=UTF-8&hl=en-tz&client=safari