solution to the INI5 (village) problem, TESTED and ACCEPTED