I figured it out! I called these two lines in both the 
deckview.php and 
nope.php files:
	PHP Code:
	
		
			
include("inc/functions.php"); 
include("inc/bbcode.php"); 
		
	
 Lesson learned, watch what you copy and paste. Now I have to get it to call the right names and card images when loaded...