Added reinsertion of friends list into database in index.php page in case it changed in the meanwhile , between player's two games, better organized code for localhost and online parameters of URLs and database parameters,solved issue when var toptenlist=0, to not display list by using the array, since it caused bugs before