TestCollisionsInFrame f = new TestCollisionsInFrame();
List<Individual> list = f.getList();
GamePanel game = new GamePanel(list);
Control cont = new Control(list);
game.addKeyListener(cont);
mainFrame.replacePanel(game);
TestCollisions thread = new TestCollisions(list, game);
thread.start();
mainFrame.setVisible(true);
}