too much for a single line

Made directory and game file creation safer.

Fixed memory leak when removing db_results linked list entries.

Style changed to "linux" style. I prefer BSD, but more people are familiar with
linux.