Gameloop is now called correctly
change from this to userInterface.variables
Initialise x,yOffset