> Space *board; // (x,y) is at board[y*width + x] You may gain some more speed if you make width a power of 2 (since you still probably need to access the board depending on the coords). Anyway it'd probably be a small gain unless code size reduction make it fit into L1 Icache :-) Laurent