Replaced sources of SRE by library and fixed in-game terminal