#include "grid.h"
#include "machine.h"
#include "gridmanager.h"
#include <algorithm>
#include <numeric>