#include "grid.h" int calculateIndex(int x, int y) { return x + y * COLUMNS; }