Hey Ron:
First, D-shaped "squares" are pretty much part and parcel of Intermediate class around here. If you're to the point of doing squares with four identifiable corners, you're probably in the Intermediate winner's circle, and your friends may even be whispering "Advanced" in your ear.
Second, forgive me if I'm salting your wounds, but I don't practice new things or add big changes to my planes right before a contest unless I'm desperate. Your experience is an example of why.
Third, try to get into the habit of steering your plane toward the wheels or toward the canopy, not up or down. It's entirely a matter of how you hold your mouth, but when you're upside down and you think "wheels" that's unambiguous -- when you're upside down and you think "up", that can lead to hesitation or reversed control.
Fourth, try practicing climbs and dives while inverted. You want your thoughts about what you want the plane to do to be directly connected to your hand -- not going through a box labeled "which way is up?" If I were your coach and not some guy on the Internet, I'd make you combine this with thinking "wheels" and "canopy".
Finally -- build lots of planes, keep them simple, fly the snot out of them, and don't let the crashing bit get you down. Crashing happens, and it'll keep happening, but one day it'll stop happening.