Added basic victory condition checking