Implements checkmate and victory condition