Converted canvas into an array for easier manipulation. Doesnt work yet, but works significantly faster