added a simple victory check feature