added flush() method to save player data on the server