Refactored game rules to algorithmically describe board combinationsw