Dishwasher Gasket leaking - help!

I just installed a new motor in my dishwasher. this was not easy for me, I am not a repairman, but I finally got it done. NOW the freaking gasket is leaking like crazy. I cannot figure out how to get this stupid thing to fit better and stop leaking.