Add some game's rules functions (scores calculation & surroundings detection)