added check for edges and corners in cells, new functions to get direction and find connections
code cleanup, consolidated checking for win into one function on board class