Some edits
adding globals and gamestate enum