REFACTORED: extracted a new Bg class from the background code of the game scene