refactored win checking to use existing constant containing win conditions