Fixed GameEngine bug, keeping the same values in variables after restart