initial win checking logic mapped