Working version, chooses next cell by number of neighbours