Heat Map not passing test 9 & 10

Hi all.

My code is not passing test 9 & 10 for some reason and I cannot figure it out. Any light on the problem would be appreciated.

Link to codepen: https://codepen.io/eday69/pen/dqVRNK

Many thanks !