Could be pretty simple. My advice is just to think things through thoroughly before starting. Sometimes it's worse and longer to fix code that was written hastily than just thinking it through. I've learned this from experience. Also try explaining as much of the code with ' so that if you come back to this project after a long time, you can remember what everything does.
1そうだね プレイ済み