A slightly cleaner checking for victory conditions