Made GameLoop semi-functional