Now I have the squares working, I believe this is the easiest, most optimal way (within 10 minutes of brainstorming) without needing to implement a data structure. Works to the best of my knowledge and testing