re-worked code

After taking a break I came back and re-worked the heat map code and got
the board logic in a playable state.