made the global options a class variable and fixed a bug involving rebinding keyboard and controller simultaneously