add isWin and isTie plus switch player