Computing spatial similarity by games