@Casey-Kolb Just came back to this for another project and figured I'd try to make it work using your idea. I found the missing piece of the puzzle. You must include the floating tile type.
@d-healey I got i t working. I had to paint the panel background blue as i was unsure if the black key was being painted properly. Screenshot 2021-07-18 at 13.53.50.png
You were so right, re writing the if statement properly made it make sense in my head. I noticed there was a * missing in the fillRect array, I wondered why i was getting errors then realise i wasnt timesing I by anything ;)