skimask:
If your school is remotely worth it, go get a “professor” to HELP YOU FIND THE ANSWER!
Dude, chill. Nothing he said needs that kind of reaction!
@OP: If you need help with code, it’s best to first try to isolate the problem by removing any code that has nothing to do with what you’re trying to debug before posting. Otherwise, you’re posting big blobs of code that just distract anyone trying to help you from the real problem.