separated out a useful board function, and added marking groups as dead to prepare for game ending possibilities