Lessons from Perception for Chess-Playing Programs (and Vice Versa)