costume for her geography pageant, forcing her to wear one poorly designed by her father, which consists of Homer creating a shoddy costume of "Florida" misspelled as "Floreda" on the front of it. Homer bursts into the casino searching for Marge. Security cameras capture his rampage, causing Burns to demote him to his old job at the power plant. After realizing how much he misses the plant, Burns decides to return to it. When Homer confronts Marge for her behavior, she finally realizes she has a gambling problem and agrees to stop. Lisa wins a special prize in the geography pageant because Homer's poor costume design makes the judges think she did it all by herself. Ralph receives the same prize for his primitive costume: a note taped to his shirt that reads "Idaho". Production The episode was written by Bill Oakley and Josh Weinstein, and directed by Wes Archer. The story of the episode originated from a newspaper article that Oakley and Weinstein found about a town in Mississippi that was introducing riverboat gambling. Oakley said another inspiration for it was that there had not been many episodes about Springfield as a whole and how "crummy" the town was, so they filled the whole first act with scenes showing how "crummy" and "dismal" Springfield was. Oakley particularly liked the animation of the lights inside the casino on the slot machines and the lamps in the ceiling. The "way they radiate out" had always amazed him. Archer, who directed the animation of the episode, also thought they turned out well. The lights were especially hard for them to animate back then because the show was animated traditionally on cels, so Archer was pleased with the results. A deleted scene from the episode shows Homer dealing cards to James Bond. The staff liked the scene, so they decided to put it in the clip show episode "The Simpsons 138th Episode Spectacular". There was a brief period when the episode had a different subplot that revolved around the restaurant chain Planet Hollywood. Groening had been told by a spokesperson that if he put Planet Hollywood in The Simpsons, the creators of the restaurant, Arnold Schwarzenegger, Bruce Willis, and Sylvester Stallone, would agree to make guest appearances on the show. The writers of The Simpsons were excited about this so they wrote a new subplot for the episode that featured Planet Hollywood and