CSP1150 A1: added line to clear hits array after each iteration before filling values, image now updates.