Changed some things

You do not need to put frame.setTitle("Game Development -by ScratchForFun");
instead you can just create a JFrame with the title argument and it will add that.