new features in index.html and index.php to control and debug the game