introduced globals, tweaked state manager, trying to get some animation going