added final win validation and added documentation.