added the game class, fixed the text centering problem