Added evaluation of winning state