I figured out the source to all my problems. I originally had the SPI lines on porte which didn't work so I moved them over to portb and then everything worked fine. The reason I had so my problems is because I forgot to sent porte to digital instead of analog, oops.