I did the constraint checking stuff. But it turns out that I can't test
my code at all from home, so I can't test the two functions I made till
Sunday. Until then, feel free to comment out my code if it prevents
the code from running for some reason.