@ -21,5 +21,15 @@ public class GameView extends JPanel
this.gridSize = gridSize;
}
@Override
protected void paintComponent(Graphics g) {
super.paintComponent(g);
for(var view : views)
{
view.draw(g);
Toolkit.getDefaultToolkit().sync();