All Code Moved Over to play.php