You may not be drawing it to the correct window. When you first create the window in the playGame function, make sure you are drawing the background to that same window and not a different one. You can use different GraphWin names to specify which window like "win" or "window" or "gameWindow" etc. For example, I use 'window' for the game and 'win' for my gameover.