Commented code and moved two functions from main.c to game.c to improve coding style. Still kept some files in main.c to make global variables work.