Started to clean up: IMPORTANT

NEVER USE [0]*5.
Instead, have [0 for i in range(5)].
This is because the first one is often just 5 pointers to the same
object, meaning you change ONE, you change them ALL. First thing I did
was replace all of that.

Another thing — how did you get away with having functions at the
BOTTOM of the file? It only executes when they’re defined before
they’re called, so I flipped everything upside down.