Removed old dead files and corrected the nextPlay() function in studio.php