refactored code so that now both singleplayer and multiplayer can use the GraphicStuff class