Changed code for in game GUI over to new layout
Changed input in createInstance() to window instead of frame