Working on win logic.