Added a global game state and a message box drawing function