Clean up some messy formatting and add the stub of a group-finding function for go game logic.