refactored win checking methods so that a single method checks grid positions.