}
@SuppressWarnings("unchecked")
public <T extends FakeComponent> T createSecondPanel(Class<T> type) {
GridPanel grid = gamePanel.getGridPanel();
FakeComponent panel = grid.getSecondPanel();
if (type.isInstance(panel)) {
return (T) panel;
}
T newPanel;
try {