Debug option in GameSettings

Added a debug property to the game settings class and appropriate checks
in the code for easier switch between debug mode and normal mode