Base of GameLoop