Restructing code a bit. The Scrambles class shouldn't know anything about Swing, otherwise it'll be impossible to test.