Analyzing neighbors on a grid using openFrameworks