frame.setSize(new Dimension(640, 480));
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Container contentPane = frame.getContentPane();
playerPanel = new PlayerPanel();
contentPane.add(playerPanel);
frame.setMenuBar(getMenuBar());
// Resize frame whenever new Component is added