Fixed errors from previous commit + error log

Finished fixing all the problems from changing naming conventions in the
last version and added an error log functionality where you can write
statements to a file as a second way of debugging. Going to use to find
the crash in constructing a game_map that occur when constucting a map
from file.
Also, I plan to change the file that holds the map data from a text file
to a binary file. However, that my have to wait until I write a program
that can make maps for me.