removed references of localhost
now the game restarts automatically on complition
added comments to the code