                 , completion: nil)
             
         }
-        
-        //bring X, check, and playpause buttons to the front
+        // Bring Buttons to the front
         self.view.bringSubviewToFront(xButton)
         self.view.bringSubviewToFront(checkButton)
         self.view.bringSubviewToFront(pausePlayButton)
-       /* if let self.backCardView = self.popTrackWithFrame(self.backCardViewFrame()) {
-            self.backCardView?.alpha = 0
-            self.view.insertSubview(self.backCardView!, belowSubview: self.frontCardView!)
-            UIView.animateWithDuration(0.5, delay: 0, options: UIViewAnimationOptions.CurveEaseInOut, animations: {()->Void in self.backCardView!.alpha = 1}
-                , completion: nil)
-        }*/
-        
+    
         pausePlayButton.selected = true
         pausePlayButton.addTransforms()
+        
+        
     }
     // View frames
     func frontCardViewFrame() -> CGRect {


//import MDCSwipeToChoose
class MainViewController: CenterViewController, MDCSwipeToChooseDelegate, ConnectionProtocol{
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var checkButton: UIButton!
    @IBOutlet weak var xButton: UIButton!

    
    
    func didGetTracks() {
        // Init Code
        
        SwiftSpinner.hide()
        tracks = Singleton.sharedInstance.tracks
        
        self.frontCardView = self.popTrackWithFrame(self.frontCardViewFrame())
        self.view.addSubview(self.frontCardView!)
        self.backCardView = self.popTrackWithFrame(self.backCardViewFrame())
        self.view.insertSubview(self.backCardView!, belowSubview: self.frontCardView!)
       
        currentTrack = self.frontCardView?.track!
        if currentTrack != nil {
            ConnectionManager.playStreamFromTrack(currentTrack!)
        }
        titleLabel.text = currentTrack?.title
        singleton.audioPlayer.pause()

      
        // Bring buttons to front

       
        self.view.bringSubviewToFront(xButton)
        self.view.bringSubviewToFront(checkButton)
        self.view.bringSubviewToFront(pausePlayButton)
        
        
        //hacky part so navbar doesnt overshadow the cards
        /*if self.respondsToSelector(Selector("edgesForExtendedLayout")) {
        self.edgesForExtendedLayout = UIRectEdge.None
        }
        */
        

    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }
    
    
    func popTrackWithFrame(frame:CGRect) -> ChooseTrackView? {
        // Creates a new chooseTrackView from tracks, and pops that track off the list
