Fixed scope errors

Fixed errors caused by gfx::window and gfx::res being in local scope.
Now throwing write access exceptions because sfml objects can't handle
global scope. TODO: Transition to pointers and establish some sane
scope.