In my case, I didn't understand about the concept of data structures yet. I knew about arrays, so I had all of those arrays with the same indexing, and I kept on messing up insert/remove operations, causing the data to shift between entities and creating really odd bugs...