added territory scoring and tested it