cgood
static int cgood(int, int, int, int);
if (cgood(x, y, 0, 1)) { /* if we can create here */
if (cgood(x, y, 1, 0)) { /* if we can create here */