For some random reason, line 16 doesn't work (could be multiple lines of code with the same problem) and I have proof-readed it to my best shot and it had an error image saying that the syntax is incorrect even though the program looked as if it is completely errorproof. Please help!
The others have already answered, but just to make sure it's clear. Using a single equal sign means you are setting a value.
x = 5
When you want to compare, like in an if statement, you have to use two equal signs
if x == 5: